home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-chemnitz.de!news
- From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
- Newsgroups: comp.lang.c
- Subject: Re: compiling- gcc v.s. cc
- Date: 31 Jan 96 17:26:39 GMT
- Organization: University of Technology Chemnitz, FRG
- Message-ID: <4eo8vo$dvg@pyrrhus-f.hrz.tu-chemnitz.de>
- References: <4emvi6$j4@cnn.Princeton.EDU>
- NNTP-Posting-Host: tantalus-f.hrz.tu-chemnitz.de
-
- miker@tucson.princeton.edu (CIT Information Centers) writes:
-
- >1) Is the GNU C compiler (gcc) a standard compiler that most unix
- > users have at their disposal?
-
- I would say "yes". gcc is available for most unix and also
- for DOS and WIN platforms.
-
- > I experimented with cc but did did not get consistent results.
- > On an SGI it compiled fine (both with gcc and cc), but not on
- > Sun-4 it only compiled with gcc and not with cc (cc produced
- > a lot of error messages which seem to be connected to the
- > way I declared my functions. I use prototype form as opposed
- > to traditional form).
-
- Thats the problem with sun's cc. :-(
-
- >this brings me to question...
-
- >2) Why would a program compile fine with cc on one machine but not on
- > another?
-
- Sun does only chip a K&R compiler others ship ANSI C Compiler or
- at least compiler which know prototypes.
-
- >3) What's the difference between cc and gcc?
- Different products for the same aim.
-
- h.f.s.
- [reply too]
- --
- Hans Friedrich Steffani
- Institut fuer Elektrische Maschinen und Antriebe
- TU Chemnitz-Zwickau
- e-mail: hans.steffani@e-technik.tu-chemnitz.de
-